Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@the78mole
the78mole / devc
Created May 6, 2026 19:02
devc - Open a directory directly in a VS Code Dev Container from the shell
#!/usr/bin/env bash
# devc - Open a directory in a VS Code Dev Container
usage() {
cat << HELP
Usage: devc [OPTIONS] [PATH]
Open a directory in a VS Code Dev Container.
If PATH is omitted, the current directory is used.

Fixing Function Keys on the Aula FL108 Pro Keyboard in Linux

I’ve been using the Aula FL108 Pro keyboard, and overall it's a solid board. It supports three connectivity options:

  • Wired (USB)
  • 2.4GHz wireless
  • Bluetooth

It also has four system modes: Windows, macOS, iOS, and Android.

@NabilMx99
NabilMx99 / gh-actions-exam-notes.md
Created July 23, 2026 21:06
GitHub Actions notes for preparing for the GH-200 certification exam.

1-) What is GitHub Actions?

GitHub Actions is a continuous integration and continuous delivery (CI/CD) platform that allows developers to automate their build, test, and deployment pipeline.


2-) GitHub Actions Components

  • Workflows: Workflows are defined in the .github/workflows directory of a repository and are written using YAML syntax.
@matt2005
matt2005 / lambda_function.py
Last active July 23, 2026 21:02 — forked from awarecan/lambda_function.py
Alexa Smart Home Skill Adapter for Home Assistant
"""
Copyright 2019 Jason Hu <awaregit at gmail.com>
Modified 2020 Matthew Hilton <matthilton2005@gmail.com>
Refactor and Modernised 2025 Matthew Hilton <matthilton2005@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
-- Copy file path / selection reference for pasting into AI chats
local function copy_ref(opts)
-- "%" is the current buffer's file name; ":." makes it relative to the cwd
local path = vim.fn.expand("%:.")
-- ref is what ends up in the clipboard; start with just the path
local ref = path
if opts.visual then
-- '< and '> are only set after leaving visual mode, so read the live selection:
-- "v" is the line where visual mode was started (the anchor)
@squarism
squarism / iterm2.md
Last active July 23, 2026 20:55
An iTerm2 Cheatsheet

In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So + D does not mean hold shift. + Shift + D does of course.

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key